﻿using KinonekoSoftware.CodariaDB.Core;
using KinonekoSoftware.CodariaDB.Documents.Templates;
using NewDataPart = KinonekoSoftware.CodariaDB.Documents.DataParts.DataPart;
using KinonekoSoftware.CodariaDB.Utils;
using LiteDB;

namespace KinonekoSoftware.Studio.UpgradeV3.Transformers
{
    /// <summary>
    /// <see cref="InstanceTransformer"/> 转换器用于实现设定之间的转换。
    /// </summary>
    [Pipeline]
    public sealed class InstanceTransformer : Transformer
    {
        private const string OldCollectionName = "doc";

        public override void Migrate(LiteDatabase oldDB, LiteDatabase newDB, string oldRepoDir, string newRepoDir)
        {
            var metaCollection     = newDB.GetCollection<Variant>(CollectionNames.VariantDB);
            var dataPartCollection = newDB.GetCollection<NewDataPart>(CollectionNames.DataPartDB);
            var templateCollection = newDB.GetCollection<InstanceTemplate>(CollectionNames.Template_InstanceDB);

        }
    }
}